/*
 * Copyright (c) 2017. All  rights reserved.
 * 项目名：microservice-base
 * 文件名：BaseMP.java
 * Date  ：17-10-11 下午4:05
 * Author：abin
 *
 */

package com.microservice.base.mapper;

import com.microservice.base.entity.User;
import com.microservice.base.vo.searchVo.SearchVo;

import java.util.List;

public interface BaseMP<T> {
    void save(T t);

    void saveBatch(List<T> list);

    void delete(String id);

    void deleteBatch(String[] ids);

    int update(T t);

    List<T> query(SearchVo searchVo);

    T get(String id);

    int getCount(SearchVo searchVo);

    List<User> loginUser(User user);

    List<T> queryAll();
}
